package com.xxl.job.annotation;

import java.lang.annotation.*;

/**
 * @author Tang
 * @classname XxlJobRegister
 * @description [  ]
 * @date 2023/4/5 22:50
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface XxlJobRegister {

    // cron 表达式
    String cron() default "";

    String author() default "author";

    // 0-停止，1-运行
    int triggerStatus() default 0;

    String jobDesc() default "一个job任务";

    /**
     * see ExecutorRouteStrategyEnum
     */
    String routeStrategy() default "FIRST";

}
